<%
# 
# Copyright (C) 2006  Warren Konkel and Bounty Source, Inc.
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# 
%>
<%=render(:partial => 'header')%>
  
<p>Modified <%=time_ago_in_words(@info[:date])%> ago by <%=format_user(@info[:author])%> in <a href="<%=$bs_svn_browser[:url_base]%>/!revision/<%=@info[:created_revision]%>">revision <%=@info[:created_revision]%></a>:
<em><%=@info[:log]%></em></p>

<% if @info[:binary?] %>
  This is a binary file.
<% else %>
	<% lineno = 0 %>
	<table class="codetable">
	  <thead>
	    <tr>
	      <th>#</th>
	      <th>Line</th>
	    </tr>
	  </thead>
	    
	  <tbody class="codetable_content_unchanged">
	    <% for line in @file_contents.split("\n") %>
	      <tr <%=cycle('', 'class="nonalternate"')%>>
	        <th><span><a name="<%=(lineno=lineno+1)%>" "href="#<%=lineno%>"><%=lineno%></a></span></th>
	        <td><span><%=hh(line)%></span></td>
	      </tr>
	    <% end %>
	  </tbody>
	</table>
<% end %>

<%=render(:partial => 'footer')%>
